package com.rightsidetech.mall.dto.response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.rightsidetech.mall.dto.request.CommoditySpecsReq;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@JsonIgnoreProperties(value={"typeId","specsJson","specsDetailJson","baseSpecsDetailJson"})
public class CommodityDetailResp implements Serializable {

    private Long id;

    @ApiModelProperty("商品名称")
    private String commodityName;

    @ApiModelProperty("基础商品id")
    private Long baseInfoId;

    @ApiModelProperty("分类名称")
    private String typeName;

    @ApiModelProperty("分类id")
    private List<Long> typeIds;

    @ApiModelProperty("品牌名称")
    private String brandName;

    @ApiModelProperty("封面图")
    private String cover;

    @ApiModelProperty("商品状态")
    private Byte commodityStatus;

    @ApiModelProperty("规格明细")
    private List<CommodityDetailSpecsResp> specsList;

    @ApiModelProperty(value = "是否支持以旧换新")
    private Byte isInNew;

    @ApiModelProperty(value = "商品图片")
    private List<String> commodityPicture;

    @ApiModelProperty(value = "商品详情图片")
    private List<String> commodityDetailPicture;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "划线价")
    private BigDecimal underlinedPrice;

    @ApiModelProperty("以旧换新价格")
    private BigDecimal inNewPrice;

    @ApiModelProperty("商品编码")
    private String code;

    @ApiModelProperty("驳回原因")
    private String auditContent;

    private String specsDetailJson;
    private String baseSpecsDetailJson;
    private Long typeId;
}
